package cn.itcast.order.config;

import com.alibaba.cloud.nacos.ribbon.NacosRule;
import com.netflix.loadbalancer.IRule;
import lombok.extern.slf4j.Slf4j;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Slf4j
@Configuration
public class RibbonRuleConfiguration {

    @Bean
    public IRule getIRule(){
        log.info("注入IRule(NacosRule)...");
        return new NacosRule();
    }
}
